import request from '@/utils/request'

// 成本列表
export function getTechnologyWorkingMaterialCost(query) {
    return request({
        url: '/technology/technologyWorkingMaterial/list',
        method: 'get',
        params: query
    })
}
// 固定成本修改消耗量
export function setTechnologyWorkingMaterialCost(data) {
    return request({
        url: '/technology/technologyWorkingMaterial/updatePrice',
        method: 'post',
        data: data
    })
}
// 成本汇总
export function getTechnologyWorkingPrimeCost(query) {
    return request({
        url: '/technology/technologyWorkingPrimeCost/list',
        method: 'get',
        params: query
    })
}
// 其他耗材
export function getTechnologyMaterialOtherCost(query) {
    return request({
        url: '/technology/technologyMaterialOtherCost/list',
        method: 'get',
        params: query
    })
}
// 添加其他耗材
export function setTechnologyMaterialOtherCost(data) {
    return request({
        url: '/technology/technologyMaterialOtherCost',
        method: 'post',
        data: data
    })
}
// 删除其他耗材
export function delTechnologyMaterialOtherCost(workingIds) {
    return request({
        url: '/technology/technologyMaterialOtherCost/'+workingIds,
        method: 'delete'
    })
}
// 删除其他耗材
export function putTechnologyMaterialOtherCost(data) {
    return request({
        url: '/technology/technologyMaterialOtherCost',
        method: 'put',
        data: data
    })
}